package edu.seu.mart.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import edu.seu.mart.utils.MsgKit;

/**
 * 图文消息列表类
 */
@XStreamAlias("item")
public class Article {
    /**
     * 图文消息标题
     */
    @XStreamAlias("Title")
    private String title;
    /**
     * 图文消息描述
     */
    @XStreamAlias("Description")
    private String description;
    /**
     * 图片链接，支持JPG、PNG格式，较好的效果为大图360*200，小图200*200
     */
    @XStreamAlias("PicUrl")
    private String picUrl;
    /**
     * 点击图文消息跳转链接
     */
    @XStreamAlias("Url")
    private String url;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = MsgKit.addCData(title);
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = MsgKit.addCData(description);
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = MsgKit.addCData(picUrl);
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = MsgKit.addCData(url);
    }
}
